module.exports = {
  devServer: {
    host: "localhost",
    port: "8080",
    proxy: {
      "/autumnfish": {
        // 此处的写法，目的是为了 将 /api 替换成 https://autumnfish.cn
        target: "https://autumnfish.cn/",
        // 允许跨域
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          "^/autumnfish": "",
        },
      },
      "/yiqing": {
        target: "https://c.m.163.com/ug/api/wuhan/app/data/list-total",
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          "^/yiqing": "",
        },
      },
      "/xinlangData": {
        target: "https://interface.sina.cn/news/wap/fymap2020_data.d.json?_=1580892522427",
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          "^/xinlangData": "",
        },
      },
    },
  },
};
